package com.eascs.admin.o2o.credit.dao;

import org.springframework.stereotype.Repository;

import com.eascs.admin.common.dao.BaseO2oDao;
import com.eascs.admin.o2o.credit.entity.CreditEntity;
@Repository
public class CreditDao extends BaseO2oDao{
	/**
	 * 根据loanapplyNo查询CreditEntity实体
	 * @param loanapplyNo
	 * @return
	 */
	public CreditEntity queryLoanapplyNo(String loanapplyNo) {
		String sql="select * from o2o_credit t where t.loanapply_no=?";
		return this.findEntity(sql, CreditEntity.class, loanapplyNo);
	}
}
